All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.realm.HostImpl
java.lang.Object
|
+----sun.security.acl.PrincipalImpl
|
+----sun.server.realm.HostImpl
- public class HostImpl
- extends PrincipalImpl
- implements Host
This is an implementation of Host interface
-
HostImpl(String)
-
-
equals(Host)
- Tests the equality of this principal to another Host principal
-
getDomainName()
- Guess the domain name assuming the address is in non-numerical
proper form
-
isSameDomain(Host)
- Tests for same domain between two hosts
HostImpl
public HostImpl(String name)
getDomainName
public String getDomainName()
- Guess the domain name assuming the address is in non-numerical
proper form
- Returns:
- the domain name
equals
public boolean equals(Host otherHost)
- Tests the equality of this principal to another Host principal
- Parameters:
- otherHost - Host principal
- Returns:
- true if they are equal
isSameDomain
public boolean isSameDomain(Host otherHost)
- Tests for same domain between two hosts
- Parameters:
- otherHost - Host principal
- Returns:
- true if they are from same domain
All Packages Class Hierarchy This Package Previous Next Index